setLargeIcon

@NonNull
open fun setLargeIcon(@Nullable icon: @Nullable Bitmap): @NonNull NotificationCompat.Builder(source)

Sets the large icon that is shown in the notification. Icons will be scaled on versions before API 27. Starting in API 27, the framework does this automatically.


@RequiresApi(value = 23)
@NonNull
open fun setLargeIcon(@Nullable icon: @Nullable Icon): @NonNull NotificationCompat.Builder(source)

Sets the large icon that is shown in the notification. Starting in API 27, the framework scales icons automatically. Before API 27, for safety, #reduceLargeIconSize should be called on bitmaps before putting them in an Icon and passing them into this function.